﻿using System.Xml.Serialization;

namespace NaverOpenApiLibrary.Models
{
    [XmlRoot("rss")]
    public class NewsSearchWrapper
    {
        [XmlElement("channel")]
        public News Channel;
    }

    public class News
    {
        [XmlElement("start")]
        public string Start;
        [XmlElement("display")]
        public string Display;
        [XmlElement("item")]
        public NewsDetail[] Item;
    }

    public class NewsDetail
    {
        [XmlElement("title")]
        public string Title { get; set; }
        [XmlElement("originallink")]
        public string OriginalLink { get; set; }
        [XmlElement("link")]
        public string Link { get; set; }
        [XmlElement("description")]
        public string Description { get; set; }
        [XmlElement("pubDate")]
        public string PubDate { get; set; }
    }
}
